<div style="padding-bottom:20px;">
<?php $this->Html->addCrumb('Ordenes de Servicio', '/ServiceOrders'); ?>
<?php $this->Html->addCrumb('Agregar', '/ServiceOrders/add'); ?>
</div>
<h3>Nueva Orden de Servicio</h3>

<?php echo $this->Form->create('ServiceOrder'); ?>
<table border="0" cellspacing="10" cellpadding="1" class="table table-striped">
      <tr>
        <td class="title">Orden de recepcion</td>
	    	<td class="text">
        	<?php echo $this->Form->input('numero_orden_de_servicio',array('label' => false, 'legend' => false));?> 
        </td>
      </tr>
	    <tr>
	    	<td class="title">Cliente</td>
	    	<td class="text">
					<?php echo $this->Form->input('cliente_id',array('type'=>'select', 'options'=>$clients, 'empty'=>'seleccione cliente...', 'label' => false, 'legend' => false));?> 
				</td>
	    </tr>
	    <tr>
	    	<td class="title">Fecha ingreso</td>
	    	<td><?php echo $this->Form->input('fecha', array('type'=>'date', 'label'=>false, 'legend' => false,'dateFormat' =>'DMY')); ?></td>
	    </tr>
	    <tr>
	    	<td class="title">Fecha retiro</td>
		    <td><?php echo $this->Form->input('fecha_estimada_retiro', array('type'=>'date', 'label'=>false, 'legend' => false,	'value'=> strtotime("+7 day"), 'dateFormat' =>'DMY')); ?></td>
	    </tr>
   	  <tr>
        <td class="title"></td>
        <td class="text"><?php echo $this->Form->end('Guardar'); ?></td>
    </tr>
</table>

<!-- echo $this->Form->input('seller_id',array('type'=>'options','options'=>$sellers)); -->
